package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
public class NewCase {

    public static final Integer REPORT =1;//已报案
    public static final Integer NOT_REPORT =2;//未报案
    public static final Integer NULL_REPORT =0;//没有该保单
    public static final Integer LATE_REPORT =-1;//保单失效
    public static final Integer OK =3;//受理成功
    public static final Integer NOT_OK =4;//拒绝受理
    private Long id;

    private Integer state =NOT_REPORT;//当前状态

    private String name;//报案人名称

    private Boolean gender;//报案人性别

    private String tel;//联系电话
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;//事故时间

    private String place;//事发地

    private String numbering;//保单号

    private String carnumber;//番号

    private String empname;//接待员工

}